<ion-view view-title="发布整租信息" name="house-view">
    <ion-content class="padding">

        <form action="" name="mainForm">
            <div class="item item-input item-select">
                <div class="input-label">几室</div>
                <select ng-model="house.room" ng-options="item.id as item.value for item in roomsSelect"></select>
                <!--获取选中值： {{house.room}}-->
            </div>

            <div class="item item-input item-select">
                <div class="input-label">几室</div>
                <select ng-model="house.livingRoom" ng-options="item.id as item.value for item in livingRoomsSelect"></select>
                <!-- 获取选中值： {{house.livingRoom}}-->
            </div>

            <div class="item item-input item-select">
                <div class="input-label">朝向</div>
                <select ng-model="house.orientation" ng-options="item.id as item.value for item in orientationSelect"></select>
                <!--获取选中值： {{house.orientation}}-->
            </div>

            <div class="item item-input item-select">
                <div class="input-label">装修程度</div>
                <select ng-model="house.decoration" ng-options="item.id as item.value for item in decorationSelect"></select>
                <!--获取选中值： {{house.decoration}}-->
            </div>

            <div class="item item-input">
                <div class="input-label">总层高</div>
                <input type="number" name="floor" placeholder="请输入总层高" ng-model="house.floor" required>
                <!--<div ng-messages="mainForm.floor.$error" ng-messages-multiple>
                    <p class="error" ng-message="required">Email is required.</p>
                    <p class="error" ng-message="minlength">min length 10</p>
                    <p class="error" ng-message="maxlength">max length 50</p>
                </div>-->
            </div>

            <div class="item item-input">
                <div class="input-label">所在层</div>
                <input type="number" name="inFloor" placeholder="请输入所在层" ng-model="house.inFloor" required>
            </div>

            <div class="item item-input item-select">
                <div class="input-label">装修程度</div>
                <select ng-model="house.type" ng-options="item.id as item.value for item in typeSelect"></select>
                <!--获取选中值： {{house.type}}-->
            </div>
            <button ui-sref="main.house-entire" class="button button-block button-calm" ng-disabled="mainForm.$invalid">下一步</button>
        </form>

    </ion-content>


</ion-view>
